
<template>
  <div class="welcome-container" >
    <!-- 背景层 -->
    <div class="background-blur"></div>

    <!-- 主内容区 -->
    <main class="welcome-content">
      <!-- 动态标题 -->
      <h1 class="animated-title">
        <span class="title-text">欢迎来到</span>
        <span class="highlight-text">按摩店会员管理系统</span>
      </h1>

      <!-- 装饰元素 -->
      <div class="decorative-line"></div>

      <!-- 欢迎信息 -->
      <p class="welcome-message">
        专业按摩店管理解决方案 · 让您的经营更轻松高效
      </p>

      <!-- 主要功能入口 -->
      <div class="action-buttons">
        <button
            v-for="(btn, index) in buttons"
            :key="index"
            class="action-button"
            :style="{ animationDelay: `${0.3 + index * 0.1}s` }"
            @click="navigateTo(btn.path)"
        >
          <i :class="btn.icon"></i>
          <span>{{ btn.text }}</span>
        </button>
      </div>

      <!-- 底部装饰 -->
      <div class="bottom-decoration">
        <div class="circle"></div>
        <div class="wave"></div>
      </div>
    </main>
  </div>
</template>

<script>

</script>
<style scoped>
/* 基础样式 */
.welcome-container {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://imgs.699pic.com/images/501/703/757.jpg!list2x.v1') center/cover;
  filter: blur(3px);
  opacity: 0.15;
  z-index: 0;
}

.welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
}

/* 标题样式 */
.animated-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  animation: fadeInDown 0.8s ease-out;
}

.title-text {
  display: block;
  color: #333;
  font-weight: 300;
}

.highlight-text {
  display: block;
  color: #5d78ff;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(93, 120, 255, 0.2);
}

/* 装饰线 */
.decorative-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #5d78ff, #a18cd1);
  margin: 0 auto 2rem;
  border-radius: 3px;
  animation: scaleIn 0.8s ease-out;
}

/* 欢迎信息 */
.welcome-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
}


</style>